/*
 * @Author: your name
 * @Date: 2021-02-06 17:01:01
 * @LastEditTime: 2021-12-11 22:13:52
 * @LastEditors: Please set LastEditors
 * @Description: 存储聊天数据 和对 聊天内容进行处理
 * @FilePath: \vue-movie\src\store\modules\chat\chat.module.js
 */

const online = {
  namespaced: true,
  state: () => ({
    onleListData: [],
  }),
  getters: {
    onlineNews (state) {
      return state.onleListData
    }
  },
  mutations: {
    onlineNews (state, obj) { // 增加聊天
      state.onleListData.push(obj)
    },
  },
  actions: {

  }
}

export default online